<template>
  <div>
<!--    <el-button @click="jumpOne">页面一</el-button>-->
    <el-button @click="jumpSearch">检索</el-button>
    <el-button @click="onGetData">测试</el-button>
  </div>
</template>

<script>
import Vue from 'vue'

export default {
  name: 'login',
  methods: {
    jumpOne () {
      this.$router.push({
        path: '/paper',
        query: {
          id: 'AD_2019_0_20200710132603.txt_3011'
        }
      })
    },
    jumpSearch () {
      this.$router.push('/search')
    },
    onGetData () {
      Vue.prototype.post('/show_paperpage', {
        id: 'C031会议20210106.txt_17'
      }, this.onGetDataSucc)
      // this.$axios.post('api/getPaperData')
      //   .then(res => {
      //     this.onGetDataSucc(res)
      //   })
    },
    onGetDataSucc (response) {
      console.log('onGetDataSucc:', response)
    }
  }
}
</script>

<style scoped>

</style>
